POV-Ray : Newsgroups : povray.binaries.images : Ball of rings : Re: snow Server Time
12 Aug 2024 07:21:37 EDT (-0400)
  Re: snow  
From: Hugo Asm
Date: 1 Dec 2003 17:55:15
Message: <3fcbc6d3$1@news.povray.org>
> what algorithm did you use to determine the location and size
> of your snow blobs? I've never seen snow.

You've never seen snow? I probably shouldn't take this literally.

Well, I used Gilles Tran's "makesnow.inc" at first, then modified it to
speed up parsing but the idea is still a very simple approximation:

I declare a direction vector that simulates wind and gravity, such as
 <-1, -1, 0>  which would tend to cover the top and right side of an object
(assuming y is height). The size of each particle is random but has a
minimum & maximum limit. I use the "trace" feature to shoot rays at an
object, which in my case is an imported mesh2... Gilles' macro can be found
here: http://www.oyonale.com/ressources/downloads/makesnow.inc

I know you're skilled when it comes to handling triangles - so good luck -
the project is interesting - but feel free to stop when you want to.

Best wishes,
Hugo

PS: we should probably continue the thread somewhere else.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.